package com.kly.user.task;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class UserTaskConfig {
    /**
     * pass 限制时长，单位：小时
     */
    @NacosValue(value = "${user.policy.wlm.effective.days.pass}", autoRefreshed = true)
    private Integer wlmPassEffectiveDays;
    /**
     * dislike 限制时长，单位：天
     */
    @NacosValue(value = "${user.policy.wlm.effective.days.like}", autoRefreshed = true)
    private Integer wlmLikeEffectiveDays;
    /**
     * wlm like 限制时长，单位：天
     */
    @NacosValue(value = "${user.policy.wlm.effective.days.disLike}", autoRefreshed = true)
    private Integer wlmDisLikeEffectiveDays;
    /**
     * 版本号
     */
    @NacosValue(value = "${app.version}", autoRefreshed = true)
    private String appVersion;
    /**
     * 缓存时长，单位：秒
     */
    @NacosValue(value = "${cache.homepage.data.time}", autoRefreshed = true)
    private Integer cacheTime;


}
